<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/static/css/layui.css">
</head>
<body>
    <div style="width: 500px;height: 400px;margin: 100px auto;">
        <form class="layui-form" action="/changed/{{ user.Sname }}" method="post">
  <div class="layui-form-item">
    <label class="layui-form-label">编号</label>
    <div class="layui-input-block">
      <input type="text" name="Sno" required  lay-verify="required" placeholder="请输入编号" autocomplete="off" value="{{user.Sno}}" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label"> 姓名</label>
    <div class="layui-input-block">
      <input type="text" name="Sname" required lay-verify="required" placeholder="请输入姓名" autocomplete="off" value="{{user.Sname}}" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">性别</label>
    <div class="layui-input-block">
      <input type="text" name="Ssex" required  lay-verify="required" placeholder="请输入性别" autocomplete="off"  value="{{user.Ssex}}" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">年龄</label>
    <div class="layui-input-block">
      <input type="text" name="Sage" required  lay-verify="required" placeholder="请输入年龄" autocomplete="off"  value="{{ user.Sage}}" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">所属院系</label>
    <div class="layui-input-block">
      <input type="text" name="Dno" required  lay-verify="required" placeholder="请输入所属院系" autocomplete="off" value="{{user.Dno}}" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">班级</label>
    <div class="layui-input-block">
      <input type="text" name="Sclass" required  lay-verify="required" placeholder="请输入班级" autocomplete="off" value="{{user.Sclass}}" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">住址</label>
    <div class="layui-input-block">
      <input type="text" name="address" required  lay-verify="required" placeholder="请输入住址" autocomplete="off" value="{{user.address}}" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
    </div>
  </div>
</form>
    </div>
    <script src="/static/layui.js"></script>

<script>
//Demo
layui.use('form', function(){
  var form = layui.form;
/*
  //监听提交
  form.on('submit(formDemo)', function(data){
    layer.msg(JSON.stringify(data.field));
    return false;
  });
*/
});
</script>
</body>
</html>